package net.dgg.dggcloud.service.jrcrm.entity.cms;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author 汤宏
 * @ClassName: MessageReady
 * @Description: 待发消息实体
 * @date 2017年11月16日11:30:00
 */

@Entity
@Table(name = "cms_message_ready")
public class MessageReady extends BaseEntity {

    /**
     * 接收人
     */
    @Column(name = "receiver_id")
    private Long receiverId;
    /**
     * 模版CODE
     */
    @Column(name = "template_code")
    private String templateCode;

    /**
     * 参数
     */
    @Column(name = "vals")
    private String vals;
    /**
     * 发送状态，1待发送，0发送异常
     */
    @Column(name = "status")
    private Integer status = 1;
    /**
     * 发送失败原因
     */
    @Column(name = "fail_content")
    private String failContent;

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public String getVals() {
        return vals;
    }

    public void setVals(String vals) {
        this.vals = vals;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getFailContent() {
        return failContent;
    }

    public void setFailContent(String failContent) {
        this.failContent = failContent;
    }
}
